package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xmy.cultivate.respons.FlowRs;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 退费申请
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-02
 */
@Data
@TableName("audit_return_premium")
@ApiModel(value = "AuditReturnPremium对象", description = "退费申请")
public class AuditReturnPremium implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    private Long schoolId;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("班级")
    private Long gradeId;

    @ApiModelProperty("班级")
    private Integer yearClassId;

    @TableField(exist = false)
    private String yearClassName;

    @TableField(exist = false)
    private String teacherName;


    @ApiModelProperty("退费类型：1全部课时，2部分课时")
    private Integer returnType;

    @ApiModelProperty("申请的退出课时")
    private Integer returnCourseCount;

    @ApiModelProperty("申请的退出金额")
    private BigDecimal returnCoursePrice;

    @ApiModelProperty("实际退出课时")
    private Integer solidReturnCount;

    @ApiModelProperty("实际退出金额")
    private BigDecimal solidReturnPrice;


    @ApiModelProperty("0等审批，1审批通过，2审批不通过")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("退费原因id")
    private Long causeId;

    private Long orderId;

    private String returnContent;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("学生名称")
    @TableField(exist = false)
    private String studentName;

    @ApiModelProperty("课时")
    @TableField(exist = false)
    private Integer residueCourseCount;

    @ApiModelProperty("科目名")
    @TableField(exist = false)
    private String subjectsName;

    @ApiModelProperty("退费原因")
    @TableField(exist = false)
    private String content;

    @ApiModelProperty("拒绝理由")
    @TableField(exist = false)
    private String reason;

    @ApiModelProperty("执行到了第几步")
    @TableField(exist = false)
    private Integer arriveStep;

    @ApiModelProperty("版本号")
    @TableField(exist = false)
    private Integer versionNum;

    @ApiModelProperty("审批流程")
    @TableField(exist = false)
    private List<FlowRs> flowDetailList;

    @ApiModelProperty("待审核人")
    @TableField(exist = false)
    private List<String> stayCheckNameList;

    @TableField(exist = false)
    private Long courseId;
}
